package Dao.impl;

import Dao.RoleDao;
import Domin.Role;
import java.util.Optional;

public class RoleDaoImpl implements RoleDao {

    @Override
    public Optional<Role> getRolePermissions(String roleName) {
        switch (roleName) {
            case "admin":
                return Optional.of(new Role("admin", true, true, true));
            case "hr":
                return Optional.of(new Role("hr", true, true, true));
            case "employee":
                return Optional.of(new Role("employee", false, false, false));
            default:
                return Optional.empty();
        }
    }
}